<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>客户端登陆</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="style/js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="style/js/jNice.js"></script>
	<script type="text/javascript" src="style/js/util.js" charset="utf-8"></script>
  	<script type="text/javascript">	
  		if(typeof String.prototype.trim !== 'function') {
	  String.prototype.trim = function() {
	    return this.replace(/^\s+|\s+$/g, ''); 
	  }
	}
	function clientLogin(type){
		$('input#type').val(type);
	}
	/*
	 	function clientLogin(type){
			var userName = $('input#userName').val().trim();
			var password = $('input#password').val().trim();
			var key = $('input#key').val().trim();
			try
			{
				$.ajax({
					type:"get",
					url:"client",
					async:false,
					cache:false,
					data:{
					"actionType":"login",
					"userName":userName,
					"password":password,
					"key":key,
					"type":type
					},
					dataType:"text",
					success:function(data,textStatus){
						if(data.length < 4)
							alert(getErrMsg(data));
					},
					error:function(){}
				});
			}catch(e){
				alert(e);
				return false ;
			}	
			return false;
		}*/
  	</script>
  </head>
  
  <body>
  <div>
		<form action="client" method="GET" name="loginForm" id="loginForm">
       		<input type=hidden id=actionType name=actionType value=login></input>
        	<h3>客户端登录</h3>
       		<fieldset>
       			<p>用户名:</p><p><input type="text" name="userName" id="userName" class="text-medium" maxlength=20/></input></p>
       			<p>密码:</p><p><input type="password" name="password" id="password" class="text-medium" maxlength=20/></input></p>
       			<p>公用Key:</p><p><input type="text" name="key" id="key" class="text-medium" maxlength=20 value=qidian360 /></input></p>
	            <p><input type="submit" value="答题登陆" onclick="clientLogin('answer');"/></p>
	            <p><input type="submit" value="错题查询登陆" onclick="clientLogin('report');"/></p>
	            <input type="hidden" name="type" id="type" class="text-medium" maxlength=20 value=answer /></input>
       		</fieldset>
        </form>
  </div>
  </body>
</html>
